#include "CreateKeyWidget.h"
#include "ui_CreateKeyWidget.h"

namespace kryptos { namespace ui {

CreateKeyWidget::CreateKeyWidget(QWidget *parent) :
    IKeyOperationWidget(parent),
    ui(new Ui::CreateKeyWidget)
{
    ui->setupUi(this);
    ui->progressBar->hide();
}

CreateKeyWidget::~CreateKeyWidget()
{
    delete ui;
}

QMap<QString, QString> CreateKeyWidget::params()
{
    QMap<QString, QString> paramlist;
    paramlist.insert("Name", ui->leName->text());
    paramlist.insert("Email", ui->leEmail->text());
    paramlist.insert("Comment", ui->leComment->text());
    paramlist.insert("Passphrase", ui->lePassphrase->text());
    paramlist.insert("PassphraseConfirm", ui->leConfirm->text());

    return paramlist;
}

}}
